package com.azier.kapacitor.script.method;

import com.azier.kapacitor.script.arg.SingleQuotesArg;

import java.util.ArrayList;

/**
* 1 * @Author: luoj
* 2 * @Date: 2019/11/8 11:27
* 3
*/
public class Topic extends AbstractMethod {
    private static final String name = "topic";
    /**
    Topic specifies the name of an alert topic to which, alerts will be published. Alert handlers can be configured per topic, see the API documentation.
    **/
    /**
    主题指定警报主题的名称，警报将发布到该主题。可以按主题配置警报处理程序，请参阅API文档。
    **/
    public Topic(String alert) {
        super(new ArrayList<>(), name);
        //
        this.args.add(new SingleQuotesArg(alert));


    }
}
